<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="com.mytrip.model.Userinfo"
	import="com.mytrip.webapp.filter.CtxSessionBag"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>出发吧</title>
		<jsp:include page="/common/include_js.jsp" />
		<link rel="stylesheet" type="text/css" media="screen"
			href="<%=request.getContextPath()%>/front/css/css.css" />
	</head>
	<%
		String t = request.getParameter("t") != null ? request
				.getParameter("t") : "1";
		Userinfo userinfo = (Userinfo) CtxSessionBag.getSessionBag()
				.getUserinfo();
	%>
	<body>
		<div id="wrap">
			<jsp:include page="include/top.jsp">
				<jsp:param name="t" value="5" />
			</jsp:include>
			
			<div id="main" class="mbg clearfix">
				<jsp:include page="include/myDetail-left.jsp">
					<jsp:param name="t" value="1" />
				</jsp:include>
				<div class="fRt rightBar2">
					<div class="breadcrumb">
						您现在的位置：
						<a href="">个人中心</a> > 编辑个人资料
					</div>
					<div class="title">
						<div class="tlText">
							个人资料
						</div>
					</div>
					<div class="userpicbox">
						<div class="user_box">
							<a href="editinfo.html"><img src="images/peopleicon_01.gif" /></a>
						</div>
					</div>
					<form action="<%=request.getContextPath() %>/front/myDetail!updateUser.action" method="post" id="subForm">
					<div class="editinfo ">
						<p>
							<b>用 &nbsp;户 名：</b>
							<%=userinfo.getEmail()%>
							<input type="hidden" name="email" id="email" value="<%=userinfo.getEmail()%>" />
							<input type="hidden" name="userid" id="userid" value="<%=userinfo.getId()%>" />
						</p>
						<p>
							<b>真实姓名：</b>
							<input type="text" name="realName" value="<%=userinfo.getRealName()%>" class=" Proinput" />
						</p>
						<p>
							<b>性 别：</b>
							<input name="gender" value="0" checked="checked" type="radio">男</input>
							<input name="gender" value="1" type="radio">女 </input>
						</p>
						<p>
							<b>手 机：</b>
							<input type="text" name="mobile" value="<%=userinfo.getMobile()%>" class=" Proinput" />
						</p>
						
						<!--<p>
							<b>生 日：</b>
							<select name="birthYear" style="width: 65px" alt=""></select>
							年
							<select name="birthMonth" style="width: 65px" alt=""></select>
							月
							<select name="birthDate" style="width: 65px" alt=""></select>
							日
						</p>
						  <p><b>居 &nbsp;住 地：</b><input name="userInfo.address.id" value="12618045" type="hidden">
		          <input id="address_province_id" value="" type="hidden"><input id="address_city_id" value="" type="hidden"><input id="address_county_id" value="" type="hidden">
				  <select name="userInfo.address.provinceID"><option selected="selected" value="0">请选择省</option></select>
				  <select name="userInfo.address.cityID"><option selected="selected" value="0">请选择市/区</option></select>
				  <select name="userInfo.address.countyID"><option selected="selected" value="0">请选择区/县/街道</option></select>
		  </p> 
                  <p><b>您的地址：</b>
                  <input type="text" value="" class=" Proinput" /></p>
                  <p><b>购物偏好：</b> 
                  <div class="chosediv">
			          <input name="shopingHabits" value="1" type="checkbox">食品/饮料 	<input name="shopingHabits" value="3" type="checkbox">美容/护理 	<input name="shopingHabits" value="8" type="checkbox">橱卫/清洁
			          <input name="shopingHabits" value="7" type="checkbox">家居/家具 	<input name="shopingHabits" value="2" type="checkbox">母婴/玩具 	<input name="shopingHabits" value="4" type="checkbox">家电/数码
			          <input name="shopingHabits" value="5" type="checkbox">服饰/箱包 	<input name="shopingHabits" value="6" type="checkbox">运动/户外 	<input name="shopingHabits" value="9" type="checkbox">文具/影音
			          <input name="shopingHabits" value="10" type="checkbox">建材/装修 
		          </div>
		          </p>-->
						<p>
							<b></b>
							<button class="primary" type="button" onclick="javascript:subForm();">保存信息</button>
						</p>
					</div>
					</form>
				</div>
			</div>
		</div>
		<jsp:include page="include/bottom.jsp" />
		</div>
		
<script type="text/javascript">

var subForm=function(){
	document.getElementById('subForm').submit();
}

</script>		
	</body>
</html>
